﻿using AutoWinUI;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Windows.Automation;
using System.Windows;

namespace TestProject1
{
    
    
    /// <summary>
    ///This is a test class for AutoElementTest and is intended
    ///to contain all AutoElementTest Unit Tests
    ///</summary>
    [TestClass()]
    public class AutoElementTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for AutoElement Constructor
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void AutoElementConstructorTest()
        {
            AutoElement_Accessor target = new AutoElement_Accessor();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for FindAll
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void FindAllTest()
        {
            AutoElement_Accessor target = new AutoElement_Accessor(); // TODO: Initialize to an appropriate value
            SearchScope scope = new SearchScope(); // TODO: Initialize to an appropriate value
            AutomationElementCollection expected = null; // TODO: Initialize to an appropriate value
            AutomationElementCollection actual;
            actual = target.FindAll(scope);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for FindFirst
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void FindFirstTest()
        {
            AutoElement_Accessor target = new AutoElement_Accessor(); // TODO: Initialize to an appropriate value
            SearchScope scope = new SearchScope(); // TODO: Initialize to an appropriate value
            AutomationElement expected = null; // TODO: Initialize to an appropriate value
            AutomationElement actual;
            actual = target.FindFirst(scope);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for MouseLeftClick
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void MouseLeftClickTest()
        {
            AutoElement_Accessor target = new AutoElement_Accessor(); // TODO: Initialize to an appropriate value
            int x = 0; // TODO: Initialize to an appropriate value
            int y = 0; // TODO: Initialize to an appropriate value
            target.MouseLeftClick(x, y);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for TryGetClickablePoint
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void TryGetClickablePointTest()
        {
            AutoElement_Accessor target = new AutoElement_Accessor(); // TODO: Initialize to an appropriate value
            AutomationElement automationElement = null; // TODO: Initialize to an appropriate value
            Point clickablePoint = new Point(); // TODO: Initialize to an appropriate value
            Point clickablePointExpected = new Point(); // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.TryGetClickablePoint(automationElement, out clickablePoint);
            Assert.AreEqual(clickablePointExpected, clickablePoint);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for mouse_event
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void mouse_eventTest()
        {
            long dwFlags = 0; // TODO: Initialize to an appropriate value
            long dx = 0; // TODO: Initialize to an appropriate value
            long dy = 0; // TODO: Initialize to an appropriate value
            long dwData = 0; // TODO: Initialize to an appropriate value
            long dwExtraInfo = 0; // TODO: Initialize to an appropriate value
            AutoElement_Accessor.mouse_event(dwFlags, dx, dy, dwData, dwExtraInfo);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AutomationID
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void AutomationIDTest()
        {
            AutoElement_Accessor target = new AutoElement_Accessor(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            target.AutomationID = expected;
            Assert.Inconclusive("Write-only properties cannot be verified.");
        }

        /// <summary>
        ///A test for ClassName
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void ClassNameTest()
        {
            AutoElement_Accessor target = new AutoElement_Accessor(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            target.ClassName = expected;
            Assert.Inconclusive("Write-only properties cannot be verified.");
        }

        /// <summary>
        ///A test for ParentElement
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AutoWinUI.dll")]
        public void ParentElementTest()
        {
            AutoElement_Accessor target = new AutoElement_Accessor(); // TODO: Initialize to an appropriate value
            AutomationElement expected = null; // TODO: Initialize to an appropriate value
            target.ParentElement = expected;
            Assert.Inconclusive("Write-only properties cannot be verified.");
        }
    }
}
